/// 一些常量
/// 提供歌曲扫描时候的文件类型和歌词文件类型
/// 提供歌词在线地址

var fileFilters = {
  mp3: ["mp3", "wav", "m4a", "aac", "flac"],
  wav: ["wav"],
  m4a: ["m4a"],
  aac: ["aac"],
  flac: ["flac"],
};

var lyricFilters = {
  lrc: ["lrc"],
  txt: ["txt"],
};

var lyricOnlineSource = {
  netease: "URL_ADDRESS",
  qq: "URL_ADDRESS",
};

// 豆瓣可选
// https://music.douban.com/subject/36912103/
var musicInfoSource = {
  netease: "URL_ADDRESS",
  qq: "URL_ADDRESS",
};

function MusicNameFix(name) {
  return name.replace(/\.[^.]+$/, "");
}
